import { ReqPage } from '@/api/interface'
export namespace Area {
  export interface AreaList {
    path: string
    name: string
    redirect?: string
    component?: string
    children?: AreaList[]
  }

  export interface Query extends ReqPage {
    appcode?: string
    name?: string
    level?: number
    code?: string
    pageable?: boolean
  }

  export interface Form {
    id: string
    name: string // 区域名称
    sortOrder: number // 排序值
    level: number // 级别
    parentId: string // 父ID
    parentName: string // 上级名称
  }

  export interface Default {
    parentId: string
    parentName: string
    parentLevel: number
    currentSortOrder: number
  }
}
